//
//  GYCartViewModel.h
//  GYDemo
//
//  Created by mac on 2018/4/8.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "GCBaseViewModel.h"

//@interface GYCartModel : NSObject
//@property (nonatomic, strong) NSString * companyname;
//@property (nonatomic, assign) float countprice;
//@property (nonatomic, strong) NSArray * list;
//@property (nonatomic, strong) NSString * mobile;
//@property (nonatomic, assign) BOOL is_selected;
//@end
//
//@interface GYCartGoodsModel : NSObject
//@property (nonatomic, strong) NSString * companyname;
//@property (nonatomic, strong) NSObject * count;
//@property (nonatomic, assign) NSInteger id;
//@property (nonatomic, strong) NSString * name;
//@property (nonatomic, assign) NSInteger num;
//@property (nonatomic, strong) NSString * picurl;
//@property (nonatomic, assign) float price;
//@property (nonatomic, strong) NSString * proareaname;
//@property (nonatomic, strong) NSString * procityname;
//@property (nonatomic, assign) NSInteger proid;
//@property (nonatomic, strong) NSString * proprovincename;
//@property (nonatomic, assign) NSInteger protypeid;
//@property (nonatomic, strong) NSString * protypename;
//@property (nonatomic, strong) NSObject * salecount;
//@property (nonatomic, assign) NSInteger saleid;
//@property (nonatomic, assign) NSInteger setnum;
//@property (nonatomic, strong) NSString * unit;
//@property (nonatomic, assign) BOOL is_selected;
//@end
//
//@interface GYCartViewModel : GCBaseViewModel
//@property (nonatomic,strong) NSMutableArray *datas;
//@property (nonatomic,assign) BOOL is_selected;
//+(instancetype)shareInterface;
/////勾选的商品
//-(NSString *)shopcarids;
/////总价
//-(NSString *)finalPrice;
//-(void)chooseCart:(GYCartModel *)cart;
//-(void)chooseGoods:(GYCartGoodsModel *)model atCart:(GYCartModel *)cart andIndex:(NSInteger)index;
//-(void)chooseAll;
//
//-(void)requestDatas;
//-(void)requestChange:(GYCartGoodsModel *)model section:(NSInteger)section value:(NSString *)value key:(NSString *)key;
//-(void)requestAdd:(NSMutableDictionary *)para;

@interface GYCartShopModel : NSObject
@property (nonatomic, strong) NSString * amount;
@property (nonatomic, strong) NSString * companyname;
@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSString * picurl;
@property (nonatomic, assign) NSInteger num;
@property (nonatomic, strong) NSString * price;
@property (nonatomic, strong) NSString * unit;
@property (nonatomic, assign) NSInteger proid;
@property (nonatomic, strong) NSString * protypename;
@property (nonatomic, assign) NSInteger saleid;
@property (nonatomic, assign) NSInteger shopcarid;
@property (nonatomic,strong) NSString *comment;
@property (nonatomic,strong) NSString *mobile;
@property (nonatomic,assign) BOOL is_selected;

@property (nonatomic, strong) NSString * imgpath;
@property (nonatomic, strong) NSString * sizes;
@property (nonatomic, strong) NSString * color;
@property (nonatomic, assign) NSInteger count;
@end

@interface GYCartViewModel : GCBaseViewModel
@property (nonatomic,strong) NSMutableArray *datas;
@property (nonatomic,assign) BOOL is_selected;
+(instancetype)shareInterface;
///总价
-(NSString *)finalPrice;
///勾选的商品
-(NSString *)shopcarids;
-(void)chooseCart:(GYCartShopModel *)cart;
-(void)chooseAll;

-(void)requestDatas;
-(void)requestChange:(GYCartShopModel *)model num:(NSString *)value;
-(void)requestAdd:(NSMutableDictionary *)para;
@end
